import request from "@/utils/request"

export function getPrice(data){
    return request({
        url:"/order/getPrice",
        method:"post",
        data
    })
}

export function orderPay(data){
    return request({
        url:"/order/add",
        method:"post",
        data
    })
}

export function orderInfo(params){
    return request({
        url:"/order/info",
        method:"get",
        params
    })
}

export function orderState(params){
    return request({
        url:"/order",
        params
    })
}

export function orderCancel(data){
    return request({
        url:"/order/cancel",
        method:"post",
        data
    })
}

export function orderDel(data){
    return request({
        url:"/order/del",
        method:"post",
        data
    })
}